home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Applications / RB-ECHO CGI EXAMPLE / How to test CGIs on your mac next >
Text File  |  1998-06-01  |  2KB  |  48 lines

  1.  
  2. 6/1/98 Doug Holton <doug.holton@vanderbilt.edu>
  3. Upload your improvements to the realsoftware ftp server or
  4.   the realbasic hotline cafe.
  5.  
  6. You can test RealBasic CGI apps of your own by running a web
  7. server and browser on your own computer locally.  Anytime
  8. you make changes to your source code and want to try them out,
  9. you have to build the application, and give it a name that ends
  10. with ".acgi".  Drag the application to the cgi-bin folder inside
  11. your server's root or where-ever you can put cgi programs.
  12.  
  13. Download Quid Pro Quo or another of the servers listed at
  14. http://www.macorchard.com/
  15.  
  16. You'll need enough RAM to run the server, a browser, and the cgi app:
  17. Quid Pro Quo ~ 5mb
  18. Internet Explorer 4 ~ 4mb
  19. realbasic cgi app ~ 1 mb
  20. (Finder takes up RAM, too)
  21.  
  22. After you've installed the server, open your TCP/IP control panel,
  23. and save the configuration you have.  Type command-K to view all
  24. the configurations.  Duplicate one of them and rename it "localtalk"
  25. or something.  Click the "Make Active" button to go back to the
  26. TCP/IP window.  These are the settings I have:
  27. Connect via:  appletalk (MacIP)
  28. Configure: Using MacIP manually
  29. IP Address:  111.111.111.111 (or any easy to remember numbers)
  30. everything else should be blank
  31.  
  32. Now open up Quid Pro Quo (or your server) and it should start up alright
  33. (though it may take a while while it tries a nameserver lookup), then
  34. start up your web browser.  Open up a url like this:
  35. http://111.111.111.111/cgi-bin/rb-echo.acgi
  36.  
  37. replace the numbers with the numbers you entered in the TCP/IP control panel,
  38. and replace the name of the program with the name of your CGI app.
  39.  
  40.  
  41.  
  42. HISTORY:
  43. version 0.11:
  44.     • I shouldn't have taken out the "----" stringparam, I forgot what it was for :-)
  45.     • forgot to close a <br> tag
  46. version 0.1:
  47.     • initial release
  48.